package com.example.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("goods")
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品编号")
    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sid;
    

    @ApiModelProperty(value = "商品名")
    private String name;

    @ApiModelProperty(value = "单价")
    private Integer price;

    @ApiModelProperty(value = "存量")
    private Integer stock;

    @ApiModelProperty(value = "商品分类")
    private String classification;

    @ApiModelProperty(value = "供应商id")
    private Integer uid;

    public Goods() {
    }

    public Goods(Integer sid, Integer stock) {
        this.sid = sid;
        this.stock = stock;
    }


}
